#ifndef PARAMSIDMANAGER_H
#define PARAMSIDMANAGER_H

#include <QObject>
#include <QMutex>

class ParamsIDManager : public QObject
{
    Q_OBJECT
    Q_DISABLE_COPY_MOVE(ParamsIDManager);
public:
    static quint32 getNewID();

private:
    explicit ParamsIDManager(QObject *parent = nullptr);
    ~ParamsIDManager();
    quint32 nextID;

    static QMutex mutex;
    static ParamsIDManager *instance;
};

#endif // PARAMSIDMANAGER_H
